* {
    margin: 0;
    padding: 0;
}
li {
    list-style: none;
}
/* 声明清除浮动的样式 */
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
    /* IE6、IE7专门清除浮动样式 */
}
html {
    height: 100%;
    font-size: 16px;
    background-color: #159957;
    background-image: linear-gradient(120deg, #155799, #159957);
    background-attachment: fixed;
}
@media screen and (min-width: 64em) {
    html {
        font-size: 1.4rem
    }
}
@media screen and (min-width: 42em) and (max-width: 64em) {
    html {
        font-size: 1rem;
    }
}
@media screen and (max-width: 42em) {
    html {
        font-size: 0.8rem;
    }
}
.header {
    color: #fff;
    text-align: center;
    padding: 3rem 1rem 0 1rem;
}
.nav {
    margin: 1rem auto 0 auto;
    max-width: 40rem; 
    border-radius: 1rem 1rem 0 0;
    background: rgba(255, 255, 255, 0.363);
}
.nav ul {
    width: 100%;
    display: flex;
}
.nav ul li {
    flex: 1;
    margin: 0;
    
}
.nav ul li a {
    display: block;
    text-align: center;
    padding: 0.5rem;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 1rem 1rem 0 0;
}
.nav ul li:hover a {
    color: black;
    background-color: white;
}
.main {
    margin: 0 auto;
    padding: 1rem;
    max-width: 60rem;
    min-width: 34rem;
    background-color: white;
    border-radius: 0.6rem;
}
.main h1, .main h2, .main h3, .main h4, .main h5, .main h6 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: normal;
    color: #159957;
}
.main input[type=text] {
    font-size: 0.8rem;
    border-radius: 1rem;
    margin: 1px;
    padding: 0 0.4rem;
    border-block-width: 1px;
    outline: none;
    border: 1px solid rgba(0,0,0,.2);
    line-height: 1.4;
    -webkit-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}
.main input[type=text]:hover {
    border: 1px solid rgba(0,0,0,.5);
}
.main input[type=text]:focus {
    border: 1px solid #0092fa;
    background-color: rgba(0,0,0,.05);
}
.main input[type="submit"] {
    color: #f8f8f8;
    background: #32c682;
    font-size: 1rem;
    padding: 0.2rem 1rem;
    border: none;
    border-radius: 0.5rem;
    margin: 0.4rem;
    -webkit-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}
.main input[type="submit"]:hover {
    background-color: #259461;
}
.main table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}
.main table caption{
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}
.main th,td{
    border: 1px solid #999;
    text-align: center;
    padding: 0.5rem 0;
}
.main table thead tr{
    background-color: #248654;
    color: #fff;
}
.main table tbody tr:nth-child(odd){
    background-color: #eee;
}
.main table tbody tr:hover{
    background-color: #ccc;
}
.main button {
    color: #f8f8f8;
    background: #32c682;
    font-size: 1rem;
    padding: 0.05rem 0.5rem;
    border: none;
    border-radius: 0.2rem;
    -webkit-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}
.main button:hover {
    background-color: #259461;
}
.footer {
    font-size: 0.8rem;
    color: darkgrey;
    text-align: center;
    padding: 2rem 0 0 0;
}
.footer a {
    color: darkgrey;
}